package com.yellowcong.form;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.RequiredArgsConstructor;
import lombok.Setter;

/**
 * 创建日期:2018年4月5日<br/>
 * 代码创建:黄聪<br/>
 * 功能描述:表单信息<br/>
 */
@Setter
@Getter
public class UserForm {
	@NotEmpty(message="用户名不能为空")
	@Length(min = 2, max = 32, message = "用户名长度在2到32个字符之间")
	private String username;
	
	@NotEmpty(message="密码不能为空")
	@Length(min = 6, max = 32, message = "密码长度在6到32个字符之间")
	private String password;

}
